package com.qf.day02;

public class WhileDemo {
    public static void main(String[] args) {
//        int count = 0;
//        while (count <= 100) {
//            System.out.println("我喜欢mk4");
//            count++;
//        }

        //求一个数是几位数
        int number = 56;
        int copyNUmber =number;
        int count =0;
        if(number==0){
            System.out.println("0和1位数");
        }else {
            while (number > 0) {
                number = number / 10;
                count++;
            }
            System.out.println(copyNUmber+"为："+count+"位数");
        }

    }
}
